package com.pti.usermanager.dao.api;

import com.pti.usermanager.dao.po.IconPo;
import com.pti.usermanager.web.dto.response.ResultResponse;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: IconService
 * @Author: liumengyao
 * @Description: 图标数据接口层
 * @Date: 2019/3/5
 */
public interface IconDao {

    //查看所有图标
    List<IconPo> findAll(Integer iconTyp);

    //查看分配的图标
    List<IconPo> findBranchData(Long usrId,Integer iconTyp);

    //根据用户id查询部门id
    Long findorgIdByUsrId(Long userId,Integer orgType);

    //根据部门id查询左侧显示图标
    List<IconPo> findIconByOrgId(Long orgId,Integer iconTyp);

    //移动上侧图标  先删除后添加
    void moveIcon(Long usrId, Long iconId, Integer sort);

    //根据用户删除
    void delIconByUsrId(Long usrId,Integer iconTyp);

}
